import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common';
import { VerificationCodeService } from './verification-code.service';
import { VerificationCodeController } from './verification-code.controller';
import { Logger } from 'src/middleware';

@Module({
  controllers: [VerificationCodeController],
  providers: [VerificationCodeService],
})
export class VerificationCodeModule implements NestModule {
  configure(consumer: MiddlewareConsumer) {
    consumer.apply(Logger).forRoutes('verification-code');
  }
}
